<?php
require('include/init.php');
require('include/pagenavigator.php');
$product_id = $_GET['product_id'];
$products = $GLOBALS['db']->getRow("select * from kyz_products where product_id='$product_id' limit 1");		
$products['product_images'] = str_replace('S', 'O', $products['product_images']);
//print_r($products);exit();
$GLOBALS['db']->query("update kyz_products set views=views+1 where product_id = '$product_id'");
$smarty->assign('pshow', $products);
$smarty->assign('products', get_products());
$smarty->display('show_product.html');


?>